<?php
/**
 * Created by PhpStorm.
 * User: 84071
 * Date: 2018-08-15
 * Time: 20:56
 */
namespace app\wxapi\controller;

use app\common\controller\Wxapibase;
use app\common\model\Phonecode as cxModel;

class Phonecode extends Wxapibase {

    public function cha(){
        if(request()->isPost()){
            $cxmodel = new cxModel();
            $data = input('post.');
            $data = datatrim($data);
            $cid = substr($data['cid'], 0, 7);
            $res = $cxmodel->where('phone',$cid)->find();
            return $res;
        }
    }

}